import request from '@u/request'
import { HttpMethod } from '@u/http'

// 查询操作日志记录列表
export function listOperateLog(query) {
  return request({
    url: '/sys/operateLog/list',
    method: HttpMethod.GET,
    params: query
  })
}

// 修改操作日志记录
export function updateOperateLog(data) {
  return request({
    url: '/sys/operateLog',
    method: HttpMethod.PUT,
    data: data
  })
}

// 删除操作日志记录
export function delOperateLog(id) {
  return request({
    url: '/sys/operateLog/' + id,
    method: HttpMethod.DELETE
  })
}


// 清空操作日志
export function cleanOperateLog() {
  return request({
    url: '/sys/operateLog/clean',
    method: HttpMethod.DELETE
  })
}
